Re: Fwd: Solaris build of 7.4 problem with - Mailing list pgsql-bugs

From Seum-Lim Gan
Subject Re: Fwd: Solaris build of 7.4 problem with
Date
Msg-id p05100300bbe87c97a968@[135.185.171.70]
Whole thread Raw
In response to Re: Fwd: Solaris build of 7.4 problem with --enable-thread-safety  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Fwd: Solaris build of 7.4 problem with
List pgsql-bugs
Hi Peter,

I got the output from the cc verbose (-#).
Looks like there is a "-hread" towards the end.

Thanks.

Gan

/opt/SUNWspro6.2/SUNWspro/bin/cc -# -Xa -G -h libecpg.so.4 execute.o
typename.o descriptor.o data.o error.o prepare.o memory.o connect.o
misc.o -L../../../../src/port -L../pgtypeslib -lpgtypes
-L../../../../src/interfaces/libpq -lpq -lm -pthread -R/platdb/lib -o
libecpg.so.4.0
cc: Warning: multiple use of -h option, previous one discarded.
### Note: NLSPATH =

/opt/SUNWspro6.2/SUNWspro/bin/../WS6U2/bin/../lib/locale/%L/LC_MESSAGES/%N.cat:/opt/SUNWspro6.2/SUNWspro/bin/../WS6U2/bin/../../lib/locale/%L/LC_MESSAGES/%N.cat
###     command line files and options (expanded):
### -p -Xa -G execute.o typename.o descriptor.o data.o error.o
prepare.o memory.o connect.o misc.o -L../../../../src/port
-L../pgtypeslib -lpgtypes -L../../../../src/interfaces/libpq -lpq -lm
-t -R/platdb/lib -o libecpg.so.4.0
### Note: LD_LIBRARY_PATH = <null>
### Note: LD_RUN_PATH = <null>
/usr/ccs/bin/ld /opt/SUNWspro6.2/SUNWspro/WS6U2/lib/crti.o
/opt/SUNWspro6.2/SUNWspro/WS6U2/lib/values-xa.o -o libecpg.so.4.0 -G
execute.o typename.o descriptor.o data.o error.o prepare.o memory.o
connect.o misc.o -L../../../../src/port -L../pgtypeslib -lpgtypes
-L../../../../src/interfaces/libpq -lpq -lm -t -R/platdb/lib -hread
-Y

"P,/opt/SUNWspro6.2/SUNWspro/WS6U2/lib/libp:/usr/ccs/lib/libp:/usr/lib/libp:/opt/SUNWspro6.2/SUNWspro/WS6U2/lib:/usr/ccs/lib:/usr/lib"

-Qy /opt/SUNWspro6.2/SUNWspro/WS6U2/lib/crtn.o
ld: fatal: recording name conflict: file
`../../../../src/interfaces/libpq/libpq.so' and -h option provide
identical dependency names: read
ld: fatal: File processing errors. No output written to libecpg.so.4.0



At 8:32 pm +0100 2003/11/24, Peter Eisentraut wrote:
>Seum-Lim Gan writes:
>
>>  >make[4]: Entering directory
>>  >`/n/DBMS/edbteam/src/sol8/sparc64/postgresql-7.4/src/interfaces/ecpg/ecpglib'
>>  >/opt/SUNWspro6.2/SUNWspro/bin/cc -Xa -G -h libecpg.so.4 execute.o
>>  >typename.o descriptor.o data.o error.o prepare.o memory.o connect.o
>>  >misc.o -L../../../../src/port -L../pgtypeslib -lpgtypes
>>  >-L../../../../src/interfaces/libpq -lpq -lm -pthread -R/platdb/lib
>>  >-o libecpg.so.4.0
>>  >cc: Warning: multiple use of -h option, previous one discarded.
>>  >ld: fatal: recording name conflict: file
>>  >`../../../../src/interfaces/libpq/libpq.so' and -h option provide
>>  >identical dependency names: read
>>  >ld: fatal: File processing errors. No output written to libecpg.so.4.0
>>  >make[4]: *** [libecpg.so.4.0] Error 1
>
>Could you try to set your compiler into some kind of verbose mode, where
>it prints out the commands it executes internally?  I suspect that the
>addition of the -pthread option results in side effects that interfere
>with the -h option.
>
>--
>Peter Eisentraut   peter_e@gmx.net


--
+--------------------------------------------------------+
| Seum-Lim GAN                 email : slgan@lucent.com  |
| Lucent Technologies                                    |
| 2000 N. Naperville Road, 6B-403F  tel : (630)-713-6665 |
| Naperville, IL 60566, USA.        fax : (630)-713-7272 |
|       web : http://inuweb.ih.lucent.com/~slgan         |
+--------------------------------------------------------+

pgsql-bugs by date:

Previous
From: "Szűcs Gábor"
Date:
Subject: unix_socket_directory vs pg_ctl?
Next
From: Peter Eisentraut
Date:
Subject: Re: [PATCHES] (Modified) Patch request for PostgreSQL 7.4 for HP-UX